<template>
  <van-nav-bar :left-text="title" left-arrow placeholder @click-left="cancel">
    <template #right>
      <div class="clo">
        <i class="iconfont icon-xiaochengxu-gengduo" />
        <i class="iconfont icon-xiaochengxu-guanbi" />
      </div>
    </template>
  </van-nav-bar>
</template>

<script>
export default {
  name: 'NavBarMD',
  props: {
    title: {
      type: String,
      default: ''
    }
  },
  data () {
    return {}
  },
  created () {},
  mounted () {},
  methods: {
    // 取消
    cancel () {
      this.$router.back()
    }
  }
}
</script>

<style scoped lang="less">
.van-nav-bar__placeholder {
  height: 180px;
}
/deep/.van-nav-bar__content {
  width: 100%;
  height: 180px;
  background-color: #3f51b5;
  .van-nav-bar__left,
  .van-nav-bar__right {
    display: flex;
    align-items: flex-start;
    padding-top: 40px;
    .van-nav-bar__text {
      font-size: 32px;
      color: #fff;
    }
    .van-nav-bar__arrow {
      font-size: 36px;
      color: #fff;
    }
    .clo {
      width: 132px;
      height: 48px;
      line-height: 48px;
      border: 1px solid #fff;
      border-radius: 48px;
      color: #fff;
      .iconfont {
        padding: 8px;
        font-size: 30px;
        color: #fff;
      }
      .icon-xiaochengxu-gengduo {
        &::before {
          padding-right: 10px;
          border-right: 4px solid #fff;
        }
      }
    }
  }
}
</style>
